<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Link extends Model
{
    protected $fillable=['linkname','linkurl','linkweight','times','remarks'];
    const CREATED_AT = 'times';
    const UPDATED_AT = 'times';
    
    public function list(){
        return Link::get();
    }
    public function count(){
        return Link::count();
    }
}
